import Vue from 'vue'
import Vuex from 'vuex'/*点击刷新会初始化*/

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    user: null,
    menus: null,
  },
  getters: {
  },
  mutations: {
    setUserData(state,data){
      state.user=data;
    },
    setMenuData(state,data){
      state.menus=data;
    }
  },
  actions: {
  },
  modules: {
  }
})
